/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */
package com.xw.app.imageupload;

import java.io.InputStream;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

/**
 * The Interface ImageUploadMethod.
 *
 * @author Xi Wei
 */
public interface ImageUploadMethod {

	/**
	 * Upload image.
	 *
	 * @param request the request
	 * @param file the file
	 * @param relativePath the relative path
	 * @param fileName the file name
	 * @return the string
	 */
	public String uploadImage(HttpServletRequest request, MultipartFile file, String relativePath, String fileName);
	
	/**
	 * Upload image.
	 *
	 * @param request the request
	 * @param is the is
	 * @param relativePath the relative path
	 * @param fileName the file name
	 * @return the string
	 */
	public String uploadImage(HttpServletRequest request, InputStream is, String relativePath, String fileName);
}
